package gson;

import java.io.IOException;
import java.net.MalformedURLException;

import com.google.gson.Gson;

public class TestGson {
	public static void main(String[] args) throws MalformedURLException, IOException {
		
		String str = worker.Utils.GetHtml("https://api.stackexchange.com/2.0/search?order=desc&sort=activity&tagged=javascript&site=stackoverflow&filter=!T5TVZso8yZqn*VSo%29T&key=vxwi93Z)iv36250wzn6aVA((", "utf-8");
		
		
		Gson gson = new Gson();
		
		
		Questions question = gson.fromJson(str, Questions.class);
		System.out.println(question.items.get(0).getLink());
	}
}
